﻿/**************************************************
* 版权所有:Copyright (C)
* 作    者:蔡海翔
* 创建日期:2014/6/16 14:55:21
* 描    述:用户操作类
* 修改日期:
* 修改内容:
****************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataEntity
{
     [Table("SysUser")]
   public  class SysUser:SysLogBaseField
    {
        [Key]
        public int ID { get; set; }

        [Display(Name = "用户名")]
        
        public string UserName { get; set; }

        [Display(Name = "密码")]
       
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Display(Name = "真实姓名")]
      
        public string RealName { get; set; }

        [Display(Name = "角色")]
        
        public int SysRoleID { get; set; }

        [ForeignKey("SysRoleID")]
        public virtual SysRole SysRole { get; set; }


        [Display(Name = "性别")]
        public bool Sex { get; set; }


        [Display(Name = "电话号码")]
        public string Tel { get; set; }

        
         [Display(Name = "邮箱")]
        public string Email { get; set; }

        
         [Display(Name = "手机号码")]
        public string Mobile { get; set; }

        [Display(Name = "是否禁用")]
        public bool BeLock { get; set; }

        [Display(Name = "是否超级管理员")]
        public bool IsAdmin { get; set; }

        [Display(Name = "默认皮肤名称")]
        public string DefaultTheme { get; set; }

        [Display(Name = "备注")]
       
        public string Remark { get; set; }
       
    }
}
